<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://localhost" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://localhost" elementFormDefault="qualified">
  <xs:element name="provider">
    <xs:annotation>
			<xs:documentation xml:lang="ro">Structura datelor de personalizare pentru aplicaţiile de raportare pentru angajatori.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="addresses">
          <xs:annotation>
            <xs:documentation xml:lang="ro">Lista de adrese ale companiei angajatoare</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="address" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                  <xs:documentation xml:lang="ro">Adresa companiei angajatoare</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="cityCode" type="xs:string" use="required">
                    <xs:annotation>
                      <xs:documentation xml:lang="ro">Localitatea (valoarea codului din nomenclatorul de localităţi)</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="districtCode" type="xs:string" use="required">
                    <xs:annotation>
                      <xs:documentation xml:lang="ro">Judeţul (valoarea codului din nomenclatorul de judeţe)</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="streetName" type="xs:string" use="optional">
                    <xs:annotation>
                      <xs:documentation xml:lang="ro">Numele străzii</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="streetNo" type="xs:string" use="optional">
                    <xs:annotation>
                      <xs:documentation xml:lang="ro">Numărul străzii</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="building" type="xs:string" use="optional">
                    <xs:annotation>
                      <xs:documentation xml:lang="ro">Blocul / Clădirea</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="entrance" type="xs:string" use="optional">
                    <xs:annotation>
                      <xs:documentation xml:lang="ro">Scara / Intrarea</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="floor" type="xs:string" use="optional">
                    <xs:annotation>
                      <xs:documentation xml:lang="ro">Etajul</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="apartment" type="xs:string" use="optional">
                    <xs:annotation>
                      <xs:documentation xml:lang="ro">Apartamentul / Camera</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="postalCode" type="xs:string" use="optional">
                    <xs:annotation>
                      <xs:documentation xml:lang="ro">Codul poştal</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <!-- header attributes -->
      <xs:attribute name="code" type="xs:string" use="required">
        <xs:annotation>
          <xs:documentation xml:lang="ro">Codul companiei angajatoare în SIUI</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="name" type="xs:string" use="required">
        <xs:annotation>
          <xs:documentation xml:lang="ro">Denumirea companiei angajatorului</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="uic" type="xs:string" use="required">
        <xs:annotation>
          <xs:documentation xml:lang="ro">Codul unic de identificare al furnizorului (cod fiscal)</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="uicDate" type="xs:date" use="optional">
        <xs:annotation>
          <xs:documentation xml:lang="ro">Data de eliberare a codului unic de identificare</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="regNo" type="xs:string" use="optional">
        <xs:annotation>
          <xs:documentation xml:lang="ro">Numărul de înregistrare la Registrul Comerţului</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="regNoDate" type="xs:date" use="optional">
        <xs:annotation>
          <xs:documentation xml:lang="ro">Data înregistrării la Registrul Comerţului</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="orgUnitCode" use="optional">
        <xs:annotation>
          <xs:documentation xml:lang="ro">Casa de asigurări către care raportează angajatorul (valoarea codului din nomenclatorul de case de asigurări)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="20" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
</xs:schema>